package com.sz.mes.entity;

import java.util.Date;
import java.lang.Double;
import java.math.BigDecimal;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.validator.constraints.Length;
import java.util.List;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.sz.mes.entity.BaseCustomEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.diboot.core.util.D;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 签收 Entity定义
 * @author hem
 * @version 1.0
 * @date 2023-06-29
 * Copyright © szhs
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("receive")
public class
Receive extends BaseCustomEntity {

    private static final long serialVersionUID = -469676037106243103L;

    /**
     * 出库单号
     */
    @Length(max = 100, message = "出库单号长度应小于100")
    @TableField()
    private String outboundNum;

    /**
     * 出库id
     */
    @TableField()
    private Long outboundId;

    /**
     * 任务单号
     */
    @Length(max = 100, message = "任务单号长度应小于100")
    @TableField()
    private String taskNum;

    /**
     * 计划号
     */
    @Length(max = 100, message = "计划号长度应小于100")
    @TableField()
    private String planNum;

    /**
     * 商品编码
     */
    @Length(max = 100, message = "商品编码长度应小于100")
    @TableField()
    private String goodsCode;

    /**
     * 物料名称
     */
    @Length(max = 100, message = "物料名称长度应小于100")
    @TableField()
    private String goodsName;

    /**
     * 出库数量
     */
    @TableField()
    private Integer quantity;

    /**
     * 签收人姓名
     */
    @Length(max = 100, message = "签收人姓名长度应小于100")
    @TableField()
    private String reciveUserName;

    /**
     * 是否被签收
     */
    @TableField()
    private Boolean isRecive = false;

    /**
     * 出库类型
     */
    @Length(max = 100, message = "出库类型长度应小于100")
    @TableField()
    private String outboundType;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    /**
     * 更新人
     */
    @TableField(fill = FieldFill.UPDATE)
    private Long updateBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 规格
     */
    @Length(max = 100, message = "规格长度应小于100")
    @TableField()
    private String specifications;
}
